package com.shmn.gongjiajumain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shmn.common.utils.PageUtils;
import com.shmn.common.utils.Query;

import com.shmn.gongjiajumain.dao.ProductionLineDao;
import com.shmn.gongjiajumain.entity.ProductionLineEntity;
import com.shmn.gongjiajumain.service.ProductionLineService;


@Service("productionLineService")
public class ProductionLineServiceImpl extends ServiceImpl<ProductionLineDao, ProductionLineEntity> implements ProductionLineService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductionLineEntity> page = this.page(
                new Query<ProductionLineEntity>().getPage(params),
                new QueryWrapper<ProductionLineEntity>()
        );

        return new PageUtils(page);
    }

}